﻿@model FutureApp.Web.Models.Component.LanguageSelectionViewModel
<li class="dropdown dropdown-language">
    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
        <i class="@this.Model.CurrentLanguage.Icon"></i>
        <span class="langname">@this.Model.CurrentLanguage.DisplayName</span>
        <i class="fa fa-angle-down"></i>
    </a>
    <ul class="dropdown-menu">
        @foreach (var language in this.Model.Languages)
        {
            if (language.Name != this.Model.CurrentLanguage.Name)
            {
                <li>
                    <a href="@(ApplicationPath)AbpLocalization/ChangeCulture?cultureName=@(language.Name)&returnUrl=@(this.Request.Url)">
                        <i class="@language.Icon"></i>
                        @language.DisplayName
                    </a>
                </li>
            }
        }
    </ul>
</li>
